/*
 * @Author: 码上talk|RC
 * @Date: 2020-11-10 14:45:05
 * @LastEditTime: 2020-12-16 16:37:23
 * @LastEditors: 码上talk|RC
 * @Description: 
 * @FilePath: /tacomall-merchant/src/api/modules/goods.js
 * @微信:  13680065830
 * @邮箱:  3189482282@qq.com
 * @oops: Just do what I think it is right
 */
import { http } from '@/libs/http'

export const goods = {
    list: (params = {}, data = {}) => {
        return http.request({
            url: '/merchant/goods/page',
            params,
            data
        })
    },
    add: (params = {}, data = {}) => {
        return http.request({
            url: '/merchant/goods/add',
            params,
            data
        })
    },
    info: (params = {}, data = {}) => {
        return http.request({
            url: '/merchant/goods/info',
            params,
            data
        })
    },
    update: (params = {}, data = {}) => {
        return http.request({
            url: '/merchant/goods/update',
            params,
            data
        })
    }
}